Fix possible error

Also force-resets dInventories in makeUnique