debugging, the apps array was empty, that caused failure