Fixing a bug that the cat is waiting for input