Fix stdin
Merge pull request #412 from kevva/stdout

Fix stdin