fixed MKL error arising from empty S matrix