initialize_repository fixed