fixing bugs with editor