fix lapack