Fixed delete code generation.
Fixed ternary operator.