Fix card code search issue