fix narrowing conversion in {} warnings