I forgot to add the check if the device is already in the license before adding it otherwise you can have it in twice