Reverse draping of magnetic field lines in the boundary layer