fix a bug that if..else is grouped incorreclty