fix mkSubdiagram