reverted changes on Progress stream to avoid exception on windows