So if you don't know how to build something initially, don't worry, it happens to most SW engineers, even older ones. What distinguishes the good engineers from the bad ones is that the good ones learn, and fast.
You know what doesn't work? Trying random fixes and praying to the gods it works by magic. Don't do that, ever! Step by step instead. Find the cause first, then fix. Don't do things up-side down.