Introduction and Notation
Let $\phi(\vec{x})$ be the real Klein-Gordon (quantum) field, written as:
$$\phi(\vec{x})=\int\frac{d^3p}{(2\pi)^3}\frac{1}{\sqrt{2\omega_{p}}}\left(a_{\vec{p}}+a^{\dagger}_{-\vec{p}} \right)e^{i\vec{p}\cdot\vec{x}} $$
where $\omega_{p}=\sqrt{|\vec{p}|^2+m^2}$, $a_{\vec{p}}$, $a^{\dagger}_{-\vec{p}}$ the annihilation and creation operators, and let $\pi(\vec{x})$ the momentum density conjugate to $\phi(\vec{x})$, given by
$$\pi(\vec{x})=\int\frac{d^3p}{(2\pi)^3}(-i)\sqrt{\frac{\omega_{p}}{2}}\left(a_{\vec{p}}-a^{\dagger}_{-\vec{p}} \right)e^{i\vec{p}\cdot\vec{x}} $$
The question
The only non trivial equal-time commutator is
$$[\phi(\vec{x}),\pi(\vec{y})]=i\hbar\delta^{(3)}(\vec{x}-\vec{y}) $$
As the relation between $\phi(\vec{x})$ and the $a,a^{\dagger}$ is linear, and so is between $\pi(\vec{x})$ and them, I'm going to express the commutator obeyed by $a$ and $a^{\dagger}$. I'm failing to derive the inverse Fourier transform
$$ \int d^3x'\phi(\vec{x})e^{i\vec{p}'\cdot\vec{x}'}=\int\int d^3x'\frac{d^3p}{(2\pi)^3}\frac{1}{\sqrt{2\omega_{p}}}\left(a_{\vec{p}}+a^{\dagger}_{-\vec{p}} \right)e^{i\vec{p}\cdot\vec{x}}e^{i\vec{p}'\cdot\vec{x}'}=\\=\int d^3x'e^{i\vec{p}'\cdot\vec{x}'} \int\frac{d^3p}{(2\pi)^3}\frac{1}{\sqrt{2\omega_{p}}}\left(a_{\vec{p}}+a^{\dagger}_{-\vec{p}} \right)e^{i\vec{p}\cdot\vec{x}}=\\=(2\pi)^3\delta^{3}(\vec{p}')\int\frac{d^3p}{(2\pi)^3}\frac{1}{\sqrt{2\omega_{p}}}\left(a_{\vec{p}}+a^{\dagger}_{-\vec{p}} \right)e^{i\vec{p}\cdot\vec{x}}$$
What I want is a Dirac delta $\delta^{3}(\vec{p}-\vec{p}')$, so where is my procedure failing? I know this is a math question, but given the physical context, it may fit here better.
Thanks for your time, any hint will be appreciated
EDIT 1
EDIT 2 EDIT 1 Now as an answer