bugfix in buildPart