CheckState fix