fixes to save files without extension