Bugfixes for part and parttype