findActiveEntities correction