corrected view stream script.