hds: fix stale pointer