fixed an undefined variable (causing a PHP Notice)