Fixing for/range flag