Fixed bug with mouse position inside canvas