fix gadget type selection