Fixed the bug when enabling bluetooth