Fix code when not using parameter to enable sampling by function eval calls