Fix wrong conditional expressions.