Fix generation of default branches