deal better with empty tags