Update AppDelegate.m

fix bug