fix issue on Xcode 6