fix cat bug