Fixes for creating new files