Fixing output of interval with maximum steps