DomainError: there is no ring associated with RR