bugfix for DarkDOM#updateDarkStates