Mouse event fix