Code cleanup.
Code clean up. Fix problem with links without outgoing pages.