fix bug with AppDelegate