Fix format file creation issue

for #149