minor fix to mouse control