Fixed BDM thread problem