fixing bug where it keeps creating tags