Fixed an issue with reading content from stdin.