fixed looping bug but infercardshow still returns false always