Fixed a bug in whitening.