Fixing issue in configuration persistence: now we store correctly the model