fix appcontroller