fixed another range bug