Fix invalid conditional expression