Fixed a bug occurring during entity update/set.