fixed non-closed streams