AppDelegate fix and deployment target changed