I am trying to find the Galois group $\operatorname{Gal}(E/\mathbf{Q})$ where $E$ is the splitting field for $(X^2-2)(X^3-3)$. First the splitting field for $X^2-2$ and $X^3-3$ over $\mathbf{Q}$ are $\mathbf{Q}[\sqrt2]$ and $\mathbf{Q}[3^{1/3},w]$ respectively, where $w$ is the primitive root of unity. Also I know that $\operatorname{Gal}(\mathbf{Q}[\sqrt2]/\mathbf{Q})$ is $C_2$ and $\operatorname{Gal}(\mathbf{Q}[3^{1/3},w]/\mathbf{Q})$ is $S_3$. Since $\mathbf{Q}[\sqrt2] \cap \mathbf{Q}[3^{1/3},w] = \mathbf{Q} $, then the Galois group $\operatorname{Gal}(E/ \mathbf{Q})$ is the direct product $C_2 \times S_3$. I think something should be wrong with my reasoning because if it is correct, then we can generalize this idea to any given polynomial $(X^2-p)(X^3-q)$ where $q$ and $p$ are (not necessarily distinct) primes, but I could not find such a generalization on similar questions.
I want to ask what is wrong with my reasoning.