Fix mousemove handler