After praying for the resurrection of his mother, C.S. Lewis talked about the flaw in his childhood faith.
Unfortunately, my hindsight isn't nearly as clear, and my adult prayers are often uttered in the same way.
"I had approached God, or my idea of God, without love, without awe, even without fear. He was, in my mental picture of this miracle, to appear neither as Savior nor as Judge, but merely as a magician; and when He had done what was required of Him I supposed He would simply—well, go away."