fixing bug with updating entities in zag