[client] Fix the use of non-existent function.