fix narrowing of switched name