Fix branch creation