Fixed looping through name problem