Bugfix: 'delete' file was not written correctly.