device register fix