Some healing effects behave strangely when max HP > 9999
If you increase your maximum HP above 9999 (with e.g. potions of ultra healing), then the healing from a prayer for crowning, a wish for "healing", and activating the orb of water will set your HP total to 9999, even if it was previously higher than that.