Fixed a couple of bugs with the two methods provided by Editor.