make it work on Xcode6 beta4