You cant really fix it. Logitech has had that problem for aloooooong time.
Use the damping slider in the joystick setup to kill enough of the spikes to make it liveable, but it will only get worse. Invest in a decent joystick if you plan on doing flight sims much.