Fixed compilation error with narrow conversion