removing stray {} at the end of tags that must be self closing