Fixes #3352: Use Current fileFormat, instead of arbitray one