Fix gadget.resize assignment