I can't say how it could have happened, since I didn't see it while it happened. I can only evaluate how to fix it based on the files you sent. I can try to reproduce the steps and see if I can figure it out.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.