Fix bug in search app initialization