### Different numbering in appendixes and ToC in LaTeX

I have been struggling with this problem for the past 2 hours. Still no clue. So I am writing this blog post and hope someone can help me.

I use the appendix package to manage appendixes in my dissertation. However, in appendixes, they are numbered as "Appendix A", "Appendix B":