Fixed bug where saving device configuration would remove relationship to key. #83