Fix client table function