Fix format1 output

Fix a bug in the output of format 1.