Wideband Primary Beam Correction