fix the bug that filename is None