Fix access of multiple devices of the same class