device registration fix