Fix output format of p2