gamma changes according to what's displayed on the screen

hello guys ...so i bought a new rx580 a while ago now ...and i am having this problem with the screen gamma that changes  anytime i display something dark on the screen (i've to manually reset it eachtime ) i've tried reinstalling windows /tried all the drivers from 17.4.2 to 17.6.2 with no real result ...please note that this happen on games or on videos ...any help would be appreciated thank you guys