fixed cat detection