Fix broken Repository#refresh