fix issue when for loop in BUGS code creates only one index value
fix issue when for loop in BUGS code creates only one index value

NLMichaud/nimble,nxdao2000/nimble,NLMichaud/nimble,nxdao2000/nimble,nimble-dev/nimble,nimble-dev/nimble,nxdao2000/nimble,nimble-dev/nimble,nxdao2000/nimble,nimble-dev/nimble,NLMichaud/nimble,nimble-dev/nimble,NLMichaud/nimble