fixed type conversion error