Fixed bug in the algorithm for computing coefficients.

Two of the coefficients were equal to the bytes of ID.