diff --git a/system/src/Grav/Console/Gpm/SelfupgradeCommand.php b/system/src/Grav/Console/Gpm/SelfupgradeCommand.php
index <HASH>..<HASH> 100644
--- a/system/src/Grav/Console/Gpm/SelfupgradeCommand.php
+++ b/system/src/Grav/Console/Gpm/SelfupgradeCommand.php
@@ -84,9 +84,10 @@ class SelfupgradeCommand extends Command
         $this->setupConsole($input, $output);
         $this->upgrader = new Upgrader($this->input->getOption('force'));
 
+
+
         $local = $this->upgrader->getLocalVersion();
         $remote = $this->upgrader->getRemoteVersion();
-        $update = $this->upgrader->getAssets()->{'grav-update'};
         $release = strftime('%c', strtotime($this->upgrader->getReleaseDate()));
 
         if (!$this->upgrader->isUpgradable()) {
@@ -94,6 +95,8 @@ class SelfupgradeCommand extends Command
             exit;
         }
 
+        $update = $this->upgrader->getAssets()->{'grav-update'};
+
         $questionHelper = $this->getHelper('question');
         $skipPrompt = $this->input->getOption('all-yes');
Fix for issue #<I> - latest version check out of order