-fixed error in saving configuration