fix method call in EntityRepository