fix bug that when have no card on first cartset return 500