Fixed Xcode6 compile error