Fixed unintended invocation of on_select, on_deselect methods