Fix for issue with the ternary operator in trans.