Fixing preview not loading issue when the same type of gadget added at the second time