Fixed several bugs with the reusable editor