Fixed a type conversion