Problems with fixed parameters during root finding