Fixed crash on Xcode 6 Beta