Fixed bug with site generation