fixed bug in removing needed tags