Table shows correct data when search changed