fixed a bug introduced by mouse control scheme