improve bug with improper mouse_activity