Corrected faulty tag itteration