fixing mousepressed