Fix range use