Correcting Non Positive Definite Correlation Matrices