fix in device registration