Fixed bad class comparison

I am dumb.  No excuses this time.