fixed bug with saving config