Fixed bug using multiple devices with PME
Merge pull request #439 from peastman/master

Fixed bug using multiple devices with PME