Fix plugin import in order to use device variable