fix loop example