Revert "FIX Stream error after adding file (see issue #23)"

This reverts commit d6b930759b235d992b8379d543418b2e07d02152.
FIX Stream error after adding file (see issue #23)
Commit before this one is wrong titled