Fixed bugs in feline code