Fixed bug where check state didn't change.