Work around apparent bug in node streams in index.js as well