correction for set device type