fix mouse event coordinates