Fix for core dump on create without a filename specified