Fix sub-pixel offsets