device reg fix