If it's not knitting up correctly, you have to unravel it and start again.
Just as with knitting, so there are some things in life that you have to backtrack on. It's annoying to have to unpick the work you've just done, to discard the effort you've put in and start again. But in the end, you do a better job by going back to the beginning and doing it right.
The effort is not wasted. You have learned how not to do something, which is just as important.