fixed bug on save configuration