fixed method call in repository