fixed bug in xcode 6.0.1