Slight tweak to registry entry hook.