fix bugs when APIFactory constructing call with only one parameters