b&b bug fixed