Fixed saving and setting values for config api