Remove bad input closing tag