Fixed switch checked bug