fix random new lines coming up issue