Fix footnote jump back error. Add some test case.