A lot of people share in this misunderstanding.
There is nothing in Genesis 1:1 that says that the heavens and earth that God is creating there were either perfect or fully complete. Verse 2 actually indicates the precise opposite - they were a chaotic mess.
Then in verse 3 up to the end of the chapter, God goes about the work of FORMING what was chaotic into something orderly.
Genesis 1 is a chapter that reveals the character of God as one who gives FORM and ORDER to that which is chaotic, and who spends time working to make things into their ultimate shape, through long processes.
It is unfortunate that man has twisted the meaning to says that God is one who makes things POOF! in an instant, fully formed at the start. Nothing could be farther from the message in the Bible, starting at Gen 1, and continuing through to the end.
He's still working on me...