bug involving sqrtm