Fix check state for legend groups restored from project file