fix for fsstream