fix bug in Xcode 6 Beta 4