Bugfix for fileio