fixes to avoid empty sections on save/load