fix close tag on element with value