Second attempt at fixing corrupted wadfolder

Commit 912df16a0b76949362d5d1c93be60f49713a4376 didn't fix it, so let's
try this instead.