Fixed crash triggered by f(a,b,c)=1