Fixed bug in selector gadget