fix error with streamviewer calculation