minor typing fix to stream.sync