fixed type error.