fix for pages killing themselves