Fixed narrowing conversion warning.