Fix typos in ternary expressions
Also, clearing storage is not the right solution for removing deleted values.