Fix wrong type of not expression.