selection plugin: small fixes