Added two checks to mouse.c