fix narrowing