fix page recovery if no pages are selected