bugfix in xml creation for encrypted device