Fixed BOMScore calculation