fix some error in inputParser, every change is commented by '!!!'