fix bug in deriving class name from engine guesses