fix gadget energy behavior