fix the bug of fold unfold