Fixed bug in mousePosition.