fixed Illegal string offset 'tag'