I don't know this well enough. Looking at the definition of `search_applications` it seems like it could be fine. The way I read it we're finding 'firefox' for both apps.