Fix an issue with incorrect build branch