Bug fix in NetcdfFileWriter