fix bug when fetching, original success branch was overwritten