fix some wrong input