fix(Edit) length of patch condition