Fix issue with complex-valued matrices.