Simplified checked state and fixed bug of wrong checkstate