fix bug with mouse position