how to fix a bug in tag