fix assert to allow 0+ type ids