Fixed type conversion error.