fix in dcs (due to +1/-1 determinant in linal.qr)