Fixed a bug with creating new tags