Fixed bug with nil apps in AppController