bug fixes

- empty types bug
- webpages hasPart naming bug