fix search/table endpoint bug