Fixed the issue with the mouse coordinates being messed up.