fix page reindex bugs.