fixed saving model