Phase drift cancellation for long-term transfer using electronic compensation loop