Fixed bug for Xcode 6.1