fix error at Xcode 6.1