fix issue #1 crash when delete part