How can I remove doubt from my prayers?

By making sure you wait for the prayers and not for the prayers wait for you.
One should also try to say away from sins