Fixed to make compatible with Xcode 6.