fix app controller