fix bluetooth initialization