modify the type error in BearsAppDelegate.m file