Fixed bug causing whitening transform not to be applied