Fixed lapack error