Better to spend time refining it until you are satisfied than to settle onto something you don't like. I don't draw often, but I did it often enough to know that oneself is often one's most strict critique. The feeling of satisfaction once you arrive at something you like is worth the time and effort (and at times frustration) it takes to get there.
Don't know jack shit about coding, but there is so much stuff interacting usually, that even one miniscule change can trigger a cascade of bugs. And even if you change nothing, an update for the engine used can cause bugs just fine. So don't worry about it, as long as you find the bugs, you know what to work on.
There is a saying: Debugging your code is way harder than writing it. As such a developer who tries hard to write completely bug-free code is a bad programmer, since he is afraid of having to debug his code.
So if you can find and fix bugs in your code, it means you are on the right track.