setPixels fix