Fixed XCode warnings