fixed bug when saving module settings