Fixed a bug that can lead to terminate editor