Fix an mouse move event bug