fix: last selection not possible to select after first selection

fix the issue #2004