Merge pull request #1627 from aroche/patch-1

Fix on _update_batch() : wrong variable used for field selection