range fixes