fix: bug of if-elseif block generation algorithm.