fix page path generation