pattern or file exploration and out of range fix