fix bluetooth code