diff --git a/src/samplefunctional.hh b/src/samplefunctional.hh
index 7b06cbabdd8543e3a3f4731ec7cf7082761049b4..5b8258b8efa4eee2a6f77cfebd6a8ab9709d6089 100644
--- a/src/samplefunctional.hh
+++ b/src/samplefunctional.hh
@@ -47,7 +47,7 @@ class SampleFunctional {
     // TODO: collinearity checks suck
     if (pg * x == pg.two_norm() * x.two_norm() &&
         -(mg * x) == mg.two_norm() * x.two_norm()) {
-      ret = SmallVector(0);
+      ret = SmallVector(0.0);
       return;
     } else if (pg * x >= 0 && mg * x >= 0) {
       ret = pg;