did you run the security assist wizard twice to create the same pages? This would double the code on the page.
When running the security assist wizard, if the page to create already exists, it will add the code for security assist to the existing code on the page, i you where to run it a second time, the code would be duplicated.