Fix search promise call