fixing incorrect tag nesting