fixed an error in saving the model file
initial commit