Fixed issue when running on Xcode 6 Beta 7