Magnetic gradient effects on the universal drift instability