Fixes a bug in legacy.lua that prevented options from being saved