fixed 'id_type' argument checking