Fix corrupted '\n' chars

This fixes commit e81da3a2fab6af4969902b6c268c8dfac43ea6fb
Remove unused variable

Introduced in commit e81da3a2fab6af4969902b6c268c8dfac43ea6fb