fix mouse processing