fixed an issue with Xcode 6