Bugfix in getRepositories