fixed search API call