fix typo (Undefined variable: filename)