fix search tables