fixed enter and leave notify events