Fix shroud hash updating.

Fixes #6308.