fix backward spans of recursive ranges