fixed a bug when fetching repository info