Fixes issue with plugin API getting the ID