fix counting true false.