Fix pointers to the next doc