engine: fix bug in pointer when desc is null
editor: fix bug when edit actions