fixing searchbox bug