Fixed none error from getMousePos()