request: fix bugs when the first param is an object