fix issue with search table change when changing theme