Fixed a type warning.