Fixes a recent regression issue with storing active/inactive module states