Fix bug in cat