fixed a bug where the timeline didn't have the correct page index after a page got deleted.