Fix a crash that occurs on the latest beta of Yosemite and Xcode 6