fix for variables not merged in dump_file