Fix code for Xcode6.1-beta2.