AppController bugfix