Bug fix in pages build process