SetPoseParameter problem

Hello,
I made simple e2 function



__e2setcost(10)
e2function void entity:setPoseParameter(string parameter,val)
	this:SetPoseParameter(parameter,val)
end
__e2setcost(nil)


Then expression (E(TF2 sentry gun), A and B are inputs)



E:setPoseParameter("aim_pitch",clamp(A,-44,44))
E:setPoseParameter("aim_yaw",B)


When I give A to 0 and B to some value and vice versa it works properly but when I give value on both is is setting the yaw (as it is last in exp2).
It is strange that when I am holding prop in physgun then modifying values everything works fine.