fix the search() in Application.java