Thanks for sharing.
The actual situation is when we look for the differential expressed genes, whether considering the gene length or not will not influence the result.
If we calculate the pearson correlation, the gene length will more or less bring the bias into the results. Even we know the spearman correlation should be much better, considering the gene length in expression values should be more solid when we are going to compare the genes across samples or species.