fix var generation in switch statements for ECall