fixes #18: fix the bug that headers will be missing if the `modified` instance is piped by a readable stream; fix the zero-bype error