Additional fix for issue 6471, so it also works correctly in SeaMonkey