fix bug with tags