fixed a bug where the mousemove event listener was not removed correctly.