fixed 'range' feature, which was misbehaving.