Fixed bug with searching cards