mouseevent bug fix