another bug fix of page linking