[Panda] Fix id allocation.