Fix on/off devices