fix max_correlation