fix(view-factory): incorrect loop variable name