fixed for xcode 6 beta 3