Fixed filename variable bug.