Bug fix for no-reset == nil and STDIN reads