fixed theme problem, each page is generated twice.