fix for issue using wrong API when first adding domain when first enabling plugin