Fix repository initialization