[[ RefactorSyntax ]] Fixed error in 'repeat with' statement