Set defaults for pagetypes, bug fixes