Fix an issue when determining the screen given a pixel coordinate.