fixed a minor error in the setup of initial range