Fix the malfunction for gatt