Solve get_entities() deprecated