Correct some bit numbers in the code.