Fix batch entity update to only update changed attributes