Fixed bug using multiple devices with PME