fix cat script