Fixed a bug which produced an extra unclosed div.