Fixed the mouse offset problem