fix a big bug that was deleting all parts