Published doc shows deleted pages

I made a copy of a doc of mine then deleted some of the pages. When I publish the doc the pages I deleted are still there. I also noticed that when I close and reopen the new doc the old pages apear at first and then disapear. They are not just hidden I have checked. How do I fix this. Seems like a bug.
Here is a screen capture of it happening.