Fixed loadPageConfig() method