fixed type bug