Appcontroller fix