fixed #387: `select` now is `null` after a `clear`