fix the sync example ui logic from getting wrong entity when doing update