Default typeID to 1 if type is unknown