Fix cat printing error with more than one line