fixed compile error on Xcode5.