Fix the LU decomposition