My guess is the problem is related to
It seems strange to have
k=(1-lambda)*kNLC;
where both variables are predetermined.