fixes error in isfit_pages