fixed search locally