bugfix for callAPI by func name, since minify will change func name