fix shape format issue