fixed ESUI and templateEditor