Bugfix in guess_text