nvapi: fix mapping of devices