fix arel range_query