AppDelegate Fix