fixed xcode5 warnings