Fix stream management restoring
Merge pull request #34 from alexesprit/sm

Fix stream management resuming