Fixed input reading error.