Fixed AppController error