fixed submit empty card bug