Correction in Andersen thermostat