Fix mistake in perplexity