Fixed duplicate branch issue