Fix bug when set_duration() would bury entity while update is is progress