Fixed bug when starting selection outside of canvas