Fixed the removal of parts.