Fixed bug with duplicating single quote.