fixes bug where div tags can't be rendered