fix buffer overflows. Closes T1050
reset now resets mouse. Ref T725