Minor correction for shape inference