UPD: fix logic for save module settings