FIX: fix typo, call stream .finish(), not .flush()!