Removed the error of stdin garbage