fix mismatch in arguments due to api signature change