hamster: update leaf to fix reuse of object