fix mouse remaining waiting