fix registerMouse