fix #21119: Templates with parts create corrupted score