fixed bug where tag was being ignored