try to fix asserts in getrange