Fixed a bug with tags on separate lines