Fix exponentially decaying sample in case of long period of inactivity