fix typo and coding style
Merge pull request #654 from lyogavin/enhance_pipe

fix typo and coding style in #638