fix save model