Fixed expected type for if-expression.