fix error in Xcode6 beta5