solve the double br bug