Fixing Issue in Application Controller