tag autoclosing fix