Fix #1: bug that a expand all foldings when switching tab