Minor changes

Do not read file if the model is just trained.