fixed bug in cat