Fix to destroying of gwin buttons