fix find entity when importing rules