Fixed LAPACK code