fix level initially passed to repositoryTree