Fixes appcontroller