folding maze: bug fix*2

bug fix*2