fixed call to nn_device