Fixed repository loading