Bugfix: truncate existing files to 0 by default