Fixed a bug to correctly handle pages moves for real-time indexing.