How does the Artillerist’s Arcane Firearm d8 bonus work with Crits?

When you cast an artificer spell through the firearm, roll a d8, and you gain a bonus to one of the spell’s damage rolls equal to the number rolled.

It reads like it’s adding to an existing roll, and since you roll double dice on crits this means I can’t double this bonus effectively?