Fix crash if mouse_x or mouse_y are hooked