Fixed a bug where creating new files was broken.