fix a bug that if..else are grouped incorrectly
Merge pull request #900 from ruil2/enc_warnings

fix a bug that if..else are grouped incorrectly