Fix a bug with empty repo file