Less racy possition assignment.

Aaron Miller pointed out the racism.
Use merge instead of update-in.