Fixed args processing in direct API