small fix in the loop initialization