[PD] error on closing patch