fix card compare