Antihang stdin fix from maluke