bugfix in classify