corrected a bug of input param