fix issue with NLEQ