bugfix: click tag + clear tags + click same tag again wouldn't add the tag to the query field