Fixed an issue where startWith is not overridden

Fixed an issue where the setting startWith was not being overridden
because i was explicitly set to start from 0. Corrected by moving the
var i after var settings and setting i to setting.startWith.