Fixed bug in arel visitor code