fix AttributeError: 'TaggableRel' object has no attribute 'to'