add more class detection and fixed wrong constant cat detection