fix deck upgrade