fix stdin logic
1.0.2