Fix bug: 'copy statements' did not save them to disk