Resolution change fix