Fixed a bug with newlines in preamble.