Fix addResources in Page.