fixed small bug with ajax for card search