Magnetic fields vary in complexity for different stars. The stability of dipolar magnetic fields is known to depend on different quantities, e.g., the stellar rotation, the stratification, and the intensity of convective motions. Here, we study the dipolar stability in a system with an inner stable zone. We present preliminary results of dynamo simulations using the Rayleigh number as a control parameter. The stiffness of the stable zone is accordingly varied to keep a constant ratio of the Brunt-Väisälä frequency to the angular velocity. Similarly to the completely convective spherical shell, we find that a transition exists between a regime where the magnetic field is dipolar to a multipolar regime when the Rossby number is increased. The value of the Rossby number at the transition is very close to the one of the fully convective case.