fix credit card generation bug