Fix adding incorrect tag in editor