Fix findNearestApp reference error