AI creating buggy codes, tries to fix them miserably

Doom fixing loop. Creating basic functionality generates garbage code that needs to be fixed by the same AI who generated it. I know it’s an early release but this is terrible even for Google.