fixed first time file saving