Owch that sucks but at least you wont have that happening again on your third.
I look at it this way if you make a mistake, and then remake it but make a different mistake than last time, you've made progress.
And eventual you will finish it but with loads of lessons learnt in the progress...