session save fix. convert model to JSON!