bug: detect non-existant app in correct order