Fixed bft bug