Fix for repository method