fix same file bug for likelihood