fixing add tag bug