Fixes writing new lines between entries