Fix incorrect checkbox state.