Quick and dirty bug fix (PageGenerator)