Fix repository method.