fix save/load of options