fix issue: current not incrementing for run script loop