repository method fix