fix the wrong inpu