another fix to hex/store.c infinite loop detection