fixed type id bug