fixed a small bug with the mouse coordinates