Compensation of mechanisms for stabilising frequency