Fix to definition/revision removal in editor