fix range of assert