fix here-document issue