fixed bug in previous-cat