Corrected device off code