Fixed fatal error with 'print_repo' function.