Relationship in visit entity fixed