fix no-page error and first index page