Using $server instead of $smo

$smo is not defined, using $server parameter instead (rename gone wrong?)