Fixed errors with figure elements, unclosed tags