fix part count problem