Fix shape info alg.