fix enter/leave events to use different internal var