Fix type in app controller