fixed to compile Xcode 6.1.1