Fix bug with permalink page on stages 3 and 4