Fixed timestamp updating error (closes #42)