fixed wrong filestreamtype