fixed: toggle extension state not saved properly