onRemove did not correctly remove mousemove event listener