fix Xcode 6.0.1 operand "!" problem