trying to fix strange bug with pixelization