fix conversion of tags-input data