Error in range type corrected