Fix bug caused by Editor