Modifications of demodulators to reduce effects of temperature variations