Fix Stmt code-gen bug.