fixed some bluetooth bugs