We present a simple way to compensate for hysteresis and creep in piezoelectric actuators. By inserting a capacitor in series with the piezoelectric actuator, we find a reduction in the size of the hysteresis loop. For a suitable small capacity in series, creep is eliminated.