[FIX] cope with empty ids