Fixed Xcode warnings