fixed errors in new Xcode