fix incorrect count of line breaks between client and server side