fixed bug - segfault in whitening.cxx