Fix logic if pack names & pack hash entries get desynched.