Fixed MouseUtil buffer underflows