fix range exceed