fix bug echoing config to bad file