Fix typo
Pass header as the second parameter of mapStream

Sometimes we should check the header first to see whether the
stream should be transformed.