Fix bind by function.

Bind must execute the function before performing the put operation, or the result will be non-determinsitic based on which node is executes on, and when.