Fixed weight initialization in the dct case.