fixing cat does not exist-bug