Fix mouseevent issue