fix duplicate card creation error