Fixed visit_AREL in ToSql