Fixing bugs with importing cards and inserting raw cards