fix crash when setting tpt.el.xxxx.name to nil