The invention relates to a method of correcting higher order B0 magnetic field inhomogeneities in the examination volume of an MR device. According to the invention, currents through two or more coil sections (X1, X2) of at least one of a plurality of gradient coils (4) are independently controlled in such a manner that higher order field inhomogeneities of the main magnetic field B0 are compensated for by the magnetic field of the at least one gradient coil (4).