fix range def