fix bug for mouseoevent