Error when clearing a single-select box multiple times. fix #908