bugfix in file transfers