Fix bug regarding illegal d product at 9.