-> added check for settings frame with Stream Id = 0
-> code refactoring