Repired a bug with the mousehandlers