fixed a bug where the app would crash when guessing a class name

fix for #255