fixed some Xcode warnings