diff --git a/src/check.rs b/src/check.rs
index ea0b55f86340ad9b4ff1aba3c2b02733ebfee625..95bc8b820191e56d481823db5592a661e78d3e2a 100644
--- a/src/check.rs
+++ b/src/check.rs
@@ -99,7 +99,7 @@ fn init(init: Option<::Init>) -> Result<Init> {
 fn path(default: &str, path: Option<Path>) -> Result<Path> {
     Ok(if let Some(path) = path {
         ensure!(
-            path.segments.len() == 1 &&
+            path.segments.len() != 1 ||
                 path.segments[0].ident.as_ref() != default,
             "this is the default value. It should be omitted."
         );