fix short circuit problem.
the current solution is to remove duplicated thenPart stmt node.
TODO this is the simplest way to fix this problem, but in the future,
we can also write some code to make sure we even don't add those
duplicated nodes at the begining, it should make more sense than
adding them first and remove them at the end. anyway, it should be
okay by now.