fix saving of last_duration
version 0.4.1