Fixed an error with the --noRemote option

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>