solved undefined constant name problem

row[name] -> row['name']