Fixed bug in app finding