diff --git a/lib/Gitlab/Model/Pipeline.php b/lib/Gitlab/Model/Pipeline.php
index <HASH>..<HASH> 100644
--- a/lib/Gitlab/Model/Pipeline.php
+++ b/lib/Gitlab/Model/Pipeline.php
@@ -32,7 +32,7 @@ class Pipeline extends AbstractModel
     {
         $pipeline = new static($project, $data['id'], $client);
 
-        return $job->hydrate($data);
+        return $pipeline->hydrate($data);
     }
 
     /**
diff --git a/lib/Gitlab/Model/Project.php b/lib/Gitlab/Model/Project.php
index <HASH>..<HASH> 100644
--- a/lib/Gitlab/Model/Project.php
+++ b/lib/Gitlab/Model/Project.php
@@ -1097,7 +1097,7 @@ class Project extends AbstractModel
      * @param array $scopes
      * @return Job[]
      */
-    public function jobs(array $scopes)
+    public function jobs(array $scopes = [])
     {
         $data = $this->api('jobs')->jobs($this->id, $scopes);
Default value for jobs method and fixing bug in pipeline class