in some cases selection.value becomes an empty string or null; seems to depend on browser