fix one-off problems in duplicate selection

Signed-off-by: Florian Thienel <florian@thienel.org>
3 files changed