Fixed a firefox bug with the mouse position