Fix crash with menu validation. Make parent margins state save properly