Fixed a small bug in the mouse capture service.