fix perplexity