Evaluation error fixed for ternary operator (line: 965)