fix Pager.detach

detaching the pager would result in the pager not working anymore.