Fixed bug caused in editor. #499