fix bug for solving equation (lu)