Fixed bug with generatePageHome and page-gallery-active setting