Fix bug of crash in editing therapy