fix error for ternary expression, overly strict for now