Fixed a small mistake in the previous commit: write the model after training