mouse fix for state