Solution last newline bug fixed