fix for inconsistent standing order creation

rookie mistake, set loop to continue to one less than needed