Error which happen when inputted from stdin is corrected.