Correct resolution change bug