Fixing issue with top? method in repository class.