fixed guess empty problem