Fix missing newlines in output