fix ranging window