Fixes #9457

1. Fixes #9457.
2. Modify default value of selectedState to serialize check box data.