fixed PHP-notice of undefinend variable