Fixes newline bug in SAMA.