Fixed mouse sensing bug