diff --git a/doc/src/PDF/colvars-refman-lammps.pdf b/doc/src/PDF/colvars-refman-lammps.pdf
index ef1ed3b54577643d29722a9a176cf5b683d75006..53dccba9c6c92d6b980ec05c9d97b89fc90991b7 100644
Binary files a/doc/src/PDF/colvars-refman-lammps.pdf and b/doc/src/PDF/colvars-refman-lammps.pdf differ
diff --git a/lib/colvars/colvarmodule.cpp b/lib/colvars/colvarmodule.cpp
index f293aac63f2ce433410898098127ab856cb89b84..200c2d6848f10cf6a52ab70745c6049c9387dff7 100644
--- a/lib/colvars/colvarmodule.cpp
+++ b/lib/colvars/colvarmodule.cpp
@@ -1020,14 +1020,14 @@ colvarmodule::~colvarmodule()
   if ((proxy->smp_thread_id() == COLVARS_NOT_IMPLEMENTED) ||
       (proxy->smp_thread_id() == 0)) {
 
+    reset();
+
     // Delete contents of static arrays
     colvarbias::delete_features();
     colvar::delete_features();
     colvar::cvc::delete_features();
     atom_group::delete_features();
 
-    reset();
-
     delete parse;
     parse = NULL;
     proxy = NULL;
diff --git a/lib/colvars/colvars_version.h b/lib/colvars/colvars_version.h
index 9dfeb17898295ee80f33832738eac202fe660041..59a15d7ac848b2820ea92b0ba8ae346a32bde036 100644
--- a/lib/colvars/colvars_version.h
+++ b/lib/colvars/colvars_version.h
@@ -1,5 +1,5 @@
 #ifndef COLVARS_VERSION
-#define COLVARS_VERSION "2017-10-11"
+#define COLVARS_VERSION "2017-10-19"
 // This file is part of the Collective Variables module (Colvars).
 // The original version of Colvars and its updates are located at:
 // https://github.com/colvars/colvars