fix random crash on checkEnterLeaveEntities