fixing echo to file issue