Fixed bug with content length counting and message read