add device bug