fix issue with applicationcontroller