fixed type code problem