Bug fixes

Various fixes to trace back errors
duplicating the input mode in the device settings seems wrong