bugfix saveStream to File