bugfix save model