diff --git a/src/REPLICA/tad.cpp b/src/REPLICA/tad.cpp
index 6c318cf7950b5834f4b25d615cdf3e02d5e8b577..8241d407a7ae42734c843b243f86aea5fefd79cd 100644
--- a/src/REPLICA/tad.cpp
+++ b/src/REPLICA/tad.cpp
@@ -80,7 +80,7 @@ void TAD::command(int narg, char **arg)
   // error checks
 
   if (domain->box_exist == 0) 
-    error->all("tad command before simulation box is defined");
+    error->all("Tad command before simulation box is defined");
   if (universe->nworlds == 1) 
     error->all("Cannot use TAD with a single replica for NEB");
   if (universe->nworlds != universe->nprocs)
diff --git a/src/memory.h b/src/memory.h
index f8d0eaa6c110ce463cd61d2d084ed723dd9bc808..64901536c2bf60d1e9642b121f7e8f309d988497 100644
--- a/src/memory.h
+++ b/src/memory.h
@@ -14,7 +14,6 @@
 #ifndef LMP_MEMORY_H
 #define LMP_MEMORY_H
 
-#include "error.h"
 #include "pointers.h"
 
 namespace LAMMPS_NS {