fix some bugs of the implement of get card list from the database