fix range limit of zero