Corrected stdin behavior