Fixed checkZeros function bit checking