disable unused pages and fix type